package com.itheima.service;

import com.itheima.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface BookService {
    //查询全部
    List<Book> findAllBooks();
    //查询id
    Book findById(Integer id);
    //增加
    boolean saveBooks(Book book);
    //修改
    boolean updateBooks(Book book);
    //删除
    boolean deleteById(Integer id);

}
